import time,random
from PIL import Image
from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.by import By
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC

driver = webdriver.Chrome()
driver.get(
    'https://reg.jd.com/reg/person?ReturnUrl=https%3A//www.jd.com/%3Fsource%3Denterprise%26cu%3Dtrue%26utm_source%3Dntp.msn.cn%26utm_medium%3Djingfen%26utm_campaign%3Dt_2030767747_%26utm_term%3Dba541da850f14acbbf4459d86a6e57d6')
driver.maximize_window()
abc=driver.find_element(By.XPATH,'/html/body/div[4]/div[2]/div/div[2]/button').click()
input=driver.find_element(By.ID,'form-phone')
input.send_keys(13055718008)
yanzheng=driver.find_element(By.XPATH,'//*[@id="step1-wrap"]/div[2]/div[1]').click()
huadong=driver.find_element(By.CLASS_NAME,'JDJRV-slide-inner JDJRV-slide-btn')
ActionChains(driver).click_and_hold(huadong).perform()

time.sleep(2)
